<?php
namespace app\serverfund\service\currency;

use \app\manage\service\ApiBase;
/**
 * @author:      李颖
 * @DateTime:    2017-06-29 15:13:24
 * @Description: 数字币拆分
 */
class CurrencySplitLog extends ApiBase
{
    protected $currencySplitLogValidate = '\app\serverfund\validate\CurrencySplitLog';
    protected $currencySplitLogLogic = '\app\serverfund\logic\CurrencySplitLog';

    /*获取数字币拆分记录*/
    public function list(): array 
    {
        $data = $this->haveIssetReceiveData(['page'=>'1', 'list_rows'=>'']);
        return $this->oneStepRun($data, 'serverfund/currency/CurrencySplitLog/list', 'list');
    }

    //获取指定用户的数字币拆分记录
    public function listByUserIds(): array
    {
        $data = $this->haveIssetReceiveData(['page'=>'1', 'list_rows'=>'', 'user_ids'=>' ']);
        return $this->oneStepRun($data, 'serverfund/currency/CurrencySplitLog/listByUserIds', 'listByUserIds');
    }

    /*获取某个用户的某个状态下的列表*/
    public function listByUserStatus(): array
    {
        $data = $this->haveIssetReceiveData(['user_id'=>'0', 'status'=>' ', 'page'=>'1', 'list_rows'=>''], []);
        return $this->oneStepRun($data, 'serverfund/currency/CurrencySplitLog/listByUserStatus', 'listByUserStatus');
    }


}